package com.tiancheng.trade.order.vo.api;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 修改订单信息
 *
 * @author kellen
 * @date 2024/7/27
 */
@Getter
@Setter
public class UpdateOrderVO {

    @NotEmpty
    private String uid;
    @NotEmpty
    private String orderId;
    @Valid
    @NotEmpty
    private List<SubOrder> subOrders;

    @Getter
    @Setter
    public static class SubOrder {
        @NotEmpty
        private String subOrderId;
        @NotNull
        private Integer subOrderAmount;
    }
}
